package com.wpw.web.base;

/**
 * @Description:
 * @ClassName: ClassTest
 * @CreateDate: 2020-06-16 11:26
 * @author: wupengwei
 */
public class ClassTest {

    public static void main(String[] args) {
        Man man = new Man();
        String sinmpleName = getSinmpleName(man);
        System.out.println(sinmpleName);
    }

    private static String getSinmpleName(Person person) {
        return person.getClass().getSimpleName();
    }
}

class Person {
    private String name;
}

class Man extends  Person {

}